package com.coco.seck.feign;


import com.coco.common.result.CommonResponse;
import com.coco.seck.vo.GoodsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 *
 * @author HanSama
 * @date 2021/7/19 10:47
 */
@FeignClient(value = "coco-goods")
@RequestMapping("/goods")
public interface GoodsFeignService {

    /**
     * 通过feing调用goods的 获取全部方法
     * @author HanSama
     * @date 2021/7/19 10:44
     * @return com.coco.common.result.CommonResponse
     */
    @RequestMapping("/findAll")
    public CommonResponse findAll();

    @GetMapping("/findOne/{id}")
    public CommonResponse<GoodsVo> findOne(@PathVariable("id") String id);
}
